package online.longzipeng;

/**
 * @author lzp
 * @Date:2023/10/13
 * @description:
 */
class Node {
	int val;
	Node next;
	Node random;

	public Node(int val) {
		this.val = val;
		this.next = null;
		this.random = null;
	}

	@Override
	public String toString() {
		return "["+this.val+","+(this.random!=null?this.random.val:0)+"]";
	}
}